<?php
/**
 * See the enclosed file license.txt for licensing information.
 * If you did not receive this file, get it at http://www.fsf.org/copyleft/gpl.html
 *
 * @copyright   The XOOPS project http://www.xoops.org/
 * @license     http://www.fsf.org/copyleft/gpl.html GNU General Public License (GPL)
 * @package     installer
 * @since       2.3.0
 * @author      Haruki Setoyama  <haruki@planewave.org>
 * @author      Kazumi Ono <webmaster@myweb.ne.jp>
 * @author      Skalpa Keo <skalpa@xoops.org>
 * @author      Taiwen Jiang <phppp@users.sourceforge.net>
 * @author      DuGris (aka L. JEN) <dugris@frxoops.org>
 * @version     $Id: common.inc.php 1429 2008-04-02 12:27:19Z phppp $
**/

/**
 * If non-empty, only this user can access this installer
 */
define( 'INSTALL_USER', '' );
define( 'INSTALL_PASSWORD', '' );

define('XOOPS_INSTALL', 1);
define("XOOPS_ROOT_PATH", str_replace( "\\", "/", realpath( '../' ) ) );

// options for mainfile.php
$xoopsOption['nocommon'] = true;
@include_once '../mainfile.php';

// Instantiate  error handler / logger class
global $xoopsLogger, $xoopsErrorHandler;
include_once '../class/logger.php';
$xoopsLogger =& XoopsLogger::instance();
$xoopsErrorHandler =& $xoopsLogger;
$xoopsLogger->startTime();
$xoopsLogger->startTime( 'XOOPS Boot' );
error_reporting( E_ALL );

include './class/installwizard.php';
include_once '../include/version.php';
include_once './include/functions.php';

$pageHasHelp = false;
$pageHasForm = false;

session_start();

$wizard =& new XoopsInstallWizard();
if ( !$wizard->xoInit() ) {
    exit();
}

if ( !@is_array( $_SESSION['settings'] ) ) {
    $_SESSION['settings'] = array();
}

?>
